﻿package Message.Command
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class ECmdBroadCast extends Object
    {
        public var __value:int;
        public static const _ECmdBroadcastEntityInfo:int = 1;
        public static const _ECmdBroadcastEntityInfos:int = 2;
        public static const _ECmdBroadcastEntityMoveInfo:int = 3;
        public static const _ECmdBroadcastEntityLeftInfo:int = 4;
        public static const _ECmdBroadcastEntityAttributeUpdate:int = 5;
        public static const _ECmdBroadcastEntityAttributeUpdates:int = 6;
        public static const _ECmdBroadcastEntityLeftInfos:int = 7;
        public static const _ECmdBroadcastEntityFlashInfo:int = 8;
        public static const _ECmdBroadcastEntityOwner:int = 9;
        public static const _ECmdBroadcastEntityDiversion:int = 10;
        public static const _ECmdBroadcastDropEntityInfos:int = 11;
        public static const _ECmdBroadcastDropEntityInfo:int = 12;
        public static const _ECmdBroadcastEntityJump:int = 13;
        public static const _ECmdBroadcastEntitySomersault:int = 14;
        public static const _ECmdBroadcastEntityJumpPoint:int = 15;
        public static const _ECmdBroadcastEntityJumpCutPoint:int = 16;
        public static const _ECmdBroadcastEntityStop:int = 17;
        public static const _ECmdBroadcastEntityConfusedPoint:int = 18;
        public static const _ECmdBroadcastMapEntity:int = 21;
        public static const _ECmdBroadcastMapEntityPoint:int = 22;
        public static const _ECmdBroadcastMapEntityLeft:int = 23;
        public static const _ECmdBroadcastMapSharp:int = 24;
        public static const _ECmdBroadcastMapBossEntityPoint:int = 25;
        public static const _ECmdBroadcastEntityBeginFight:int = 41;
        public static const _ECmdBroadcastEntityDoFight:int = 42;
        public static const _ECmdBroadcastEntityFightBack:int = 43;
        public static const _ECmdBroadcastEntityBeginCollect:int = 44;
        public static const _ECmdBroadcastEntityToEntityUpdate:int = 45;
        public static const _ECmdBroadcastEntityGroupUpdate:int = 46;
        public static const _ECmdBroadcastEntityDoFights:int = 47;
        public static const _ECmdBroadcastEntitySkillCast:int = 48;
        public static const _ECmdBroadcastEntityBuffUpdate:int = 49;
        public static const _ECmdBroadcastEntityGroupIdUpdate:int = 80;
        public static const _ECmdBroadcastEntityGuildIdUpdate:int = 86;
        public static const _ECmdBroadcastEntityZazenUpdate:int = 91;
        public static const _ECmdBroadcastEntityToastUpdate:int = 92;
        public static const _ECmdBroadcastEntityDrunkUpdate:int = 93;
        public static const _ECmdBroadcastEntityMoraUpdate:int = 94;

        public function ECmdBroadCast(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : ECmdBroadCast
        {
            return new ECmdBroadCast(param1);
        }// end function

        public static function __read(param1:SerializeStream) : ECmdBroadCast
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 95)
            {
                throw new MarshalException();
            }
            return ECmdBroadCast.convert(_loc_2);
        }// end function

    }
}
